<template>
    <div id="app">
        <transition name="fade" mode="out-in">
            <!-- 缓存所有的页面 -->
            <keep-alive>
                <router-view v-if="$route.meta.keepAlive"></router-view>
            </keep-alive>
        </transition>
        <transition name="fade" mode="out-in">
            <router-view v-if="!$route.meta.keepAlive"></router-view>
        </transition>
    </div>
</template>

<script>
    export default {
        name: 'app'
    }
</script>

<style lang="less">
    @import "style/style";
</style>

 